package org.jeecg.eqp.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 点检项配置
 * @Author: shaolong
 * @Date: 2022-10-13
 * @Version: V1.0
 */
@Data
@TableName("eqp_spchk_cfg")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "eqp_spchk_cfg对象", description = "点检项配置")
public class EqpSpchkCfg implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Excel(name = "主键ID", width = 15)
    @ApiModelProperty(value = "主键ID")
    private Integer recId;
    /**
     * 设备ID
     */
    @Excel(name = "设备ID", width = 15)
    @ApiModelProperty(value = "设备ID")
    private String equipid;
    /**
     * 参数名称
     */
    @Excel(name = "参数名称", width = 15)
    @ApiModelProperty(value = "参数名称")
    private String name;
    /**
     * 上公差
     */
    @Excel(name = "上公差", width = 15)
    @ApiModelProperty(value = "上公差")
    private BigDecimal lowLimit;
    /**
     * 下公差
     */
    @Excel(name = "下公差", width = 15)
    @ApiModelProperty(value = "下公差")
    private BigDecimal upLimit;
    /**
     * 基准值
     */
    @Excel(name = "基准值", width = 15)
    @ApiModelProperty(value = "基准值")
    private BigDecimal standard;
    /**
     * 数据填写类型 1: checkbox, 2: text
     */
    @Excel(name = "数据填写类型 1: checkbox, 2: text", width = 15, dicCode = "qis_matdetail_cfg@DATATYPE")
    @Dict(dicCode = "qis_matdetail_cfg@DATATYPE")
    @ApiModelProperty(value = "数据填写类型 1: checkbox, 2: text")
    private String datatype;
    /**
     * 1: check, 0: uncheck
     */
    @Excel(name = "1: check, 0: uncheck", width = 15, dicCode = "isCheck")
    @Dict(dicCode = "isCheck")
    @ApiModelProperty(value = "1: check, 0: uncheck")
    private String limitCheck;
    /**
     * 状态 1-有效，2-无效
     */
    @Excel(name = "状态 1-有效，2-无效", width = 15, dicCode = "isValid")
    @Dict(dicCode = "isValid")
    @ApiModelProperty(value = "状态 1-有效，2-无效")
    private Integer status;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**
     * 排序序号
     */
    @Excel(name = "排序序号", width = 15)
    @ApiModelProperty(value = "排序序号")
    private String sequence;
    /**
     * 更新时间
     */
    @Excel(name = "更新时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date ctime;
}
